package com.smz.dao;


import com.smz.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDAO {


    User selectUserByName(String username);

    List<User>selectAllUsers();

    void insertUser(User user);

    void updateUser(User user);

    void deleteUser(@Param("id")Integer id);

    User selectById(@Param("id")Integer id);
    User selectUserByUserId(@Param("userId") Integer userId);
}
